package com.xayy.mgt.controller;

import cn.kawins.base.result.ResultBody;
import cn.kawins.mybatis.base.BaseController;
import com.xayy.mgt.model.dto.PageDto;
import com.xayy.mgt.model.xinwangmodel.AssessHistory;
import com.xayy.mgt.service.AssessHistoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 星座健康态势评估历史
 * @author plq
 */
@RestController
@RequestMapping(value = "/assessHistory1")
@Api(tags = "星座健康态势评估历史")
public class AssessHistoryController extends BaseController<AssessHistory> {

    @Autowired
    private AssessHistoryService assessHistoryService;

    @PostMapping("/getEquipTree")
    @ApiOperation(value = "获取评估历史分页", httpMethod = "POST", response = AssessHistory.class, notes = "获取评估历史分页")
    public ResultBody getAssessHistory(@RequestBody PageDto pageDto) {
        return assessHistoryService.getAssessHistory(pageDto).body();
    }



}
